import request from "@/utils/request";

// 查询入住信息
export function findAll(info){
  return request({
    url: '/occupancyInfo/findAll',
    method: 'post',
    data: info
  })
}

// 删除入住信息
export function delOccupancyInfoById(id) {
  return request({
    url: '/occupancyInfo/delOccupancyInfoById',
    method: 'get',
    params: {id}
  })
}

// 批量删除入住信息
export function delOccupancyInfoBatch(ids) {
  return request({
    url: '/occupancyInfo/delOccupancyInfoBatch',
    method: 'get',
    params: ids
  })
}


// 退房
export function updateLeaveTime(id) {
  return request({
    url: '/occupancyInfo/updateLeaveTime/' + id,
    method: 'get',
  })
}
